Spot-On
spot-on-receive.h
1 /*
2 ** Copyright (c) 2011 - 10^10^10, Alexis Megas.
3 ** All rights reserved.
4 **
5 ** Redistribution and use in source and binary forms, with or without
6 ** modification, are permitted provided that the following conditions
7 ** are met:
8 ** 1. Redistributions of source code must retain the above copyright
9 ** notice, this list of conditions and the following disclaimer.
10 ** 2. Redistributions in binary form must reproduce the above copyright
11 ** notice, this list of conditions and the following disclaimer in the
12 ** documentation and/or other materials provided with the distribution.
13 ** 3. The name of the author may not be used to endorse or promote products
14 ** derived from Spot-On without specific prior written permission.
15 **
16 ** SPOT-ON IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 ** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 ** SPOT-ON, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef _spoton_receive_h_
29 #define _spoton_receive_h_
30 
31 #include <QByteArray>
32 #include <QList>
33 
34 class spoton_crypt;
35 
37 {
38  public:
39  static QList<QByteArray> process0000(int length,
40  const QByteArray &dataIn,
41  const QList<QByteArray> &symmetricKeys,
42  const bool acceptSignedMessagesOnly,
43  const QString &address,
44  const quint16 port,
45  spoton_crypt *s_crypt);
46  static QList<QByteArray> process0000a(int length,
47  const QByteArray &dataIn,
48  const bool acceptSignedMessagesOnly,
49  const QString &address,
50  const quint16 port,
51  const QString &messageType,
52  spoton_crypt *s_crypt);
53  static QList<QByteArray> process0000b
54  (int length,
55  const QByteArray &dataIn,
56  const QList<QByteArray> &symmetricKeys,
57  const bool acceptSignedMessagesOnly,
58  const QString &address,
59  const quint16 port,
60  spoton_crypt *s_crypt);
61  static QList<QByteArray> process0000d
62  (int length,
63  const QByteArray &dataIn,
64  const QList<QByteArray> &symmetricKeys,
65  const QString &address,
66  const quint16 port,
67  spoton_crypt *s_crypt);
68  static QList<QByteArray> process0001b
69  (int length,
70  const QByteArray &dataIn,
71  const QString &address,
72  const quint16 port,
73  spoton_crypt *s_crypt);
74  static QList<QByteArray> process0001c
75  (int length,
76  const QByteArray &dataIn,
77  const QList<QByteArray> &symmetricKeys,
78  const QString &address,
79  const quint16 port,
80  const QString &keyType,
81  spoton_crypt *s_crypt);
82  static QList<QByteArray> process0013
83  (int length,
84  const QByteArray &dataIn,
85  const QList<QByteArray> &symmetricKeys,
86  const bool acceptSignedMessagesOnly,
87  const QString &address,
88  const quint16 port,
89  spoton_crypt *s_crypt);
90  static QList<QByteArray> process0091
91  (int length,
92  const QByteArray &dataIn,
93  const QList<QByteArray> &symmetricKeys,
94  const QString &address,
95  const quint16 port,
96  const QString &messageType);
97  static QList<QByteArray> process0092
98  (int length,
99  const QByteArray &dataIn,
100  const QList<QByteArray> &symmetricKeys,
101  const QString &address,
102  const quint16 port);
103  static QString findMessageType
104  (const QByteArray &data,
105  QList<QByteArray> &symmetricKeys,
106  const int interfaces,
107  const QString &keyType,
108  spoton_crypt *s_crypt);
109 
110  private:
111  spoton_receive(void);
112 };
113 
114 #endif
spoton_crypt
Definition: spot-on-crypt.h:64
spoton_receive
Definition: spot-on-receive.h:36